﻿using System;
using MoonSharp.Interpreter;

// Token: 0x020002A8 RID: 680
public class CrushEvent : IEvent
{
	// Token: 0x06000F26 RID: 3878 RVA: 0x00073ADE File Offset: 0x00071CDE
	public CrushEvent(EntityBase victim, EntityBase crusher)
	{
		this.crusher = crusher;
		this.victim = victim;
		this.code = EventCode.OnCrush;
	}

	// Token: 0x06000F27 RID: 3879 RVA: 0x00073B00 File Offset: 0x00071D00
	public override DynValue GetLuaData()
	{
		if (this.data == null)
		{
			this.data = DynValue.NewPrimeTable();
			this.data.Table.Set("victim", DynValue.FromObject(null, this.victim.GetLuaEntity()));
			this.data.Table.Set("crusher", DynValue.FromObject(null, (!this.crusher) ? null : this.crusher.GetLuaEntity()));
		}
		return this.data;
	}

	// Token: 0x0400141D RID: 5149
	public EntityBase victim;

	// Token: 0x0400141E RID: 5150
	public EntityBase crusher;
}
